package com.mxpio.webapp.dto;

import com.alibaba.fastjson.JSONObject;
import com.mxpio.webapp.abs.AbstractInstanceBean;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 服务器信息包
 *
 * @author: Cheng
 * @date: 2022/11/1
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class ServerPackage extends AbstractInstanceBean {
    /**
     * ID
     */
    protected String id;

    /**
     * 时间
     */
    protected Date dateTime;

    /**
     * 附加信息
     */
    protected JSONObject extraMsg;
    /**
     * 服务器信息
     */
    private Server server;

    /**
     * 传输频率
     */
    private long rate;

}
